package com.peter.accessdemo;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;
import android.view.View;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);


//        findViewById(android.R.id.button1).setContentDescription("fuck you");


        findViewById(android.R.id.button1).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                view.announceForAccessibility("I Love You");
                view.announceForAccessibility("I Love You");

            }
        });
        findViewById(R.id.tv2).setContentDescription("fuck you");
        findViewById(R.id.tv3).setContentDescription("fuck you");
        findViewById(R.id.tv4).setContentDescription("september");
    }
}